﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Golos.Tags.TagCache
{
    public class QuestionTagsDictionary : Dictionary<Guid, List<string>>, IDictionary<Guid, List<string>>
    {
        public bool ContainsValue(Guid key, string value)
        {
            if (!ContainsKey(key))
                return false;
            foreach (string v in this[key])
            {
                if (v.ToUpperInvariant() == value.ToUpperInvariant())
                    return true;
            }
            return false;
        }
    }
}
